{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">地区</label>
        <div class="layui-input-block">
            <input id="c-area_name" lay-verify="required" class=" layui-input" name="row[area_name]" type="text" value="{$data.area_name}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">订单号</label>
        <div class="layui-input-block">
            <input id="c-out_trade_no" lay-verify="required" class=" layui-input" name="row[out_trade_no]" type="text" value="{$data.out_trade_no}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">用户ID</label>
        <div class="layui-input-block">
            <input id="c-member_id" lay-verify="" data-source="admin/member/index" class="selectpage layui-input" name="row[member_id]" type="text" value="{$data.member_id}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">套餐名称</label>
        <div class="layui-input-block">
            <input id="c-company_package_name" lay-verify="required" class=" layui-input" name="row[company_package_name]" type="text" value="{$data.company_package_name}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">分类名称</label>
        <div class="layui-input-block">
            <input id="c-company_cate_name" lay-verify="required" class=" layui-input" name="row[company_cate_name]" type="text" value="{$data.company_cate_name}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">规格名称</label>
        <div class="layui-input-block">
            <input id="c-spec_name" lay-verify="required" class=" layui-input" name="row[spec_name]" type="text" value="{$data.spec_name}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">价格</label>
        <div class="layui-input-block">
            <input id="c-pay_amount" lay-verify="required" class=" layui-input" step="0.01" name="row[pay_amount]" type="number" value="{$data.pay_amount}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">手机号</label>
        <div class="layui-input-block">
            <input id="c-phone" lay-verify="required" class=" layui-input" name="row[phone]" type="text" value="{$data.phone}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">0:待支付。1:支付成功。2:支付失败</label>
        <div class="layui-input-block">
            <input id="c-status" lay-verify="required" class=" layui-input" name="row[status]" type="number" value="{$data.status}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">支付时间</label>
        <div class="layui-input-block">
            <input id="c-pay_time" class="datetime layui-input" name="row[pay_time]" type="text" value="{:$data.pay_time?time_format($data.pay_time):''}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">服务过期时间</label>
        <div class="layui-input-block">
            <input id="c-expire_time" lay-verify="required" class="datetime layui-input" name="row[expire_time]" type="text" value="{:$data.expire_time?time_format($data.expire_time):''}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">套餐id</label>
        <div class="layui-input-block">
            <input id="c-package_id" lay-verify="" data-source="admin/package/index" class="selectpage layui-input" name="row[package_id]" type="text" value="{$data.package_id}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">套餐分类ID</label>
        <div class="layui-input-block">
            <input id="c-company_cate_id" lay-verify="" data-source="admin/company.cate/index" class="selectpage layui-input" name="row[company_cate_id]" type="text" value="{$data.company_cate_id}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">transaction_id</label>
        <div class="layui-input-block">
            <input id="c-transaction_id" lay-verify="" data-source="admin/transaction/index" class="selectpage layui-input" name="row[transaction_id]" type="text" value="{$data.transaction_id}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">规格ID</label>
        <div class="layui-input-block">
            <input id="c-spec_id" lay-verify="" data-source="admin/spec/index" class="selectpage layui-input" name="row[spec_id]" type="text" value="{$data.spec_id}">
        </div>
    </div>
    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
layui.use('yznForm', function() {
    var yznForm = layui.yznForm;
    yznForm.bindevent($("form.layui-form"));
});
</script>
{/block}